<?php
/**
 * CreateTime: 2022/9/28 15:23
 */

namespace App\Http\Requests\NewContract;

use App\Http\Requests\BaseRequests;

class SealTimeAndLocationPost   extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'contract_sign_location' => "required",
            'contract_sign_time' => "required",
            'contract_start_time' => "required",
//            'contract_end_time' => "required",
        ];
    }

    public function messages()
    {
        return [
            'contract_sign_location.required' => "合同签订地点不能为空",
            'contract_sign_time.required' => "合同签订日期不能为空",
            'contract_start_time.required' => "合同开始日期不能为空",
//            'contract_end_time.required' => "合同结束日期不能为空"
        ];
    }
}